package com.lo.entity;

import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;

@Data
public class UserRate implements Serializable {
    private int id;
    private Long userid;
    private Long courseid;
    private double rate = 0;
    private int islike = 0;
    private int iscollect = 0;
    private String type = "defult";

    private Course course;

    public UserRate(Long userid, Long courseid) {
        this.userid = userid;
        this.courseid = courseid;
    }
    public UserRate() {
    }
}
